package com.gulimall.product.feign.fallback;

import com.common.exception.BizCodeEnume;
import com.common.utils.R;
import com.gulimall.product.feign.SeckillFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SeckillFeignFallBack implements SeckillFeign {

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        log.info("熔断调用 getSkuSeckillInfo ...");
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}
